[vars]
filesize=616256
sha512=ae5c762012595ce8922bfda8749ad3e9cb055edab30152c3a5feaaf3ca6601f357d1e301b179e9a5860cd99452dd6e63e5f44f5bcc12f8db148bdd334e0200a5

[mirrors]
http://www.abisource.com/downloads/wv/1.2.9/wv-1.2.9.tar.gz

[deps]
libpng
libgsf

[build]
[ -n "$CROSS_COMPILE" ] && xconfflags="--host=$($CC -dumpmachine)"
cp -f "$K"/config.sub .
CFLAGS="-D_GNU_SOURCE $optcflags" LDFLAGS="$optldflags" \
  ./configure --prefix="$butch_prefix" $xconfflags \
   ac_cv_path_mkdir="mkdir -p"

# ^ the shipped install-sh is ancient and doesnt support the
# mkdir -p functionality which autoconf wants to use:
# install-sh -c -d "$DESTDIR/$bindir" - it causes cp to be
# called instead with wrong args

[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install
